package bookstudytest.threadtest.implement;

public class ThreadByRunnable implements Runnable {

    @Override
    public void run() {
        System.out.println("hello runnable");
    }

    public static void main(String[] args) {
        ThreadByRunnable threadByRunnable = new ThreadByRunnable();
        Thread thread = new Thread(threadByRunnable);
        thread.start();
    }
}
